OrientationType

Represents the possible screen orientations for display purposes within the RevelDigital player.

Each orientation corresponds to a specific degree of rotation from the standard landscape mode. This enum is used to define or query the intended orientation of content or the display itself.

For example, this might be used to configure how content is rendered, to match a physical display's orientation, or to respond to device rotation events if applicable.

Entries

Link copied to clipboard

Standard landscape orientation (0 degrees rotation). This is typically the default orientation for many displays.

Link copied to clipboard

Portrait orientation (90 degrees clockwise rotation from landscape). The display is taller than it is wide.

Link copied to clipboard

Reversed landscape orientation (180 degrees rotation from standard landscape). Also known as upside-down landscape.

Link copied to clipboard

Reversed portrait orientation (270 degrees clockwise rotation from landscape, or 90 degrees counter-clockwise). The display is taller than it is wide, but rotated opposite to standard portrait.

Functions

Link copied to clipboard
open fun fromInteger(degrees: Int): OrientationType
Retrieves an OrientationType based on its integer degree value.
Link copied to clipboard
open fun valueOf(name: String): OrientationType

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.